package cn.hfuu.flink;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class TEstArr {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        list.addAll(Arrays.asList(1, 2, 3, 5, 6, 6, 8, 10, 12));
        for (int i = list.size() - 1; i >= 0; i--) {
            if (list.get(i) % 2 == 0) {
                list.remove(i);
            }
        }

        System.out.println(list);
    }
}
